package com.xu.mybatis.mapper;

import com.xu.mybatis.pojo.User;
import com.xu.mybatis.pojo.UserCustom;
import com.xu.mybatis.pojo.UserQueryVo;

import java.util.List;

/**
 * Created by xu on 2017/3/8.
 */
//相当于dao接口
public interface Usermapper {

    public User findUserByIdMap(int id) throws Exception;

    public User findUserById(int id) throws Exception;

    public List<UserQueryVo> FindUserForMember() throws Exception;

    public List<UserCustom> findUserListsize(UserQueryVo userQueryVo) throws Exception;
    public List<UserCustom> findUserList(UserQueryVo userQueryVo) throws Exception;

    public void addUser(User user) throws Exception;

    public void updateUser(User user) throws Exception;

    public void deleteUser(int id) throws Exception;
}

